<?php $this->render("header.php");?>

<div class="main_box">   
	<div class="w_986 plate_986">
        <div class="plate_986_bg top_bg"></div>
        <div class="plate_986_bg mid_bg">
			<h1 class="h1_title_create_0 f_family">创建会议须知和免责条款</h1>
          <div class="create_0_content">	
<?php echo $this->content;?>
                <div class="create_0_btn">
                   <input type="button" class="line_bg_all btn_blue30" value="同意"  id="btn_reg"/>
        		   <input name="btn_cancel" id="btn_cancel"  type="button" class="line_bg_all btn_gray30 btn_cancel" value="不同意" />
                </div>    

 			</div>
            
            <div class="clear"></div>
        </div>
        <div class="plate_986_bg bot_bg"></div>
    </div>
    
    <div class="clear"></div>
</div>

<?php $this->render("footer.php");?>

<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript">  
        var leftSeconds = <?php echo $this->time;?>; 
        var intervalId;  
        $(function () {
            $("#btn_reg").attr("disabled", true).removeClass('btn_blue30').addClass('btn_gray30'); 
            intervalId = setInterval("CountDown()",1000);
        });  
        function CountDown() { 
            if (leftSeconds <= 0) {  
                $("#btn_reg").val("同意");  
                $("#btn_reg").attr("disabled",false).removeClass('btn_gray30').addClass('btn_blue30');  
                clearInterval(intervalId);
                $('#btn_reg').click(function (){
					location.href="<?php echo $this->baseUrl;?>/?c=meetcp&a=create1";
                });
                return;  
            }  
            
            leftSeconds--;  
            $("#btn_reg").val("同意("+leftSeconds+"秒)");  
        }

            $('#btn_cancel').click(function (){
    			location.href="<?php echo $this->fullUrl;?>";
            });
    </script>
</body>
</html>
